package com.woniuxy.dr_mall.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author 张哲轩
 * @version 1.0.0
 * @ClassName DrVSku.java
 * @Description sku视图，用于后台展示
 * @createTime 2021年08月16日 15:52:00
 */
@Data
@TableName("v_sku")
@JsonIgnoreProperties("handler")
public class DrVSku {
    private Integer categoryId;
    //sku id
    private Integer id;
    //类型名
    private String cname;
    //产品名
    private String pname;

    private List<DrPicture> pictures;

    @TableField("productId")
    private Integer productId;

    private Integer weight;

    private Integer material;

    private Integer color;

    private Integer type;

    private Integer size;

    private Integer series;

    private Integer stock;

    private BigDecimal price;

    private String status;

    @TableField(exist = false)
    List<DrRealSpecEntry> specEntries;
}
